//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04A
TN_Widget.CreateTable([['Luke Combs, Jordan Davis, Mitchell Tenpenny & Drew Parker','EverBank Stadium','Jacksonville, FL','Saturday','5/4/2024','5:45 PM','5878999','Luke-Combs--Jordan-Davis--Mitchell-Tenpenny---Drew-Parker-5-4-2024'],['Bryson Tiller','UBC Thunderbird Arena','Vancouver, Canada','Sunday','5/12/2024','8:00 PM','6329474','Bryson-Tiller-5-12-2024'],['The Postal Service & Death Cab for Cutie','UBC Thunderbird Arena','Vancouver, Canada','Tuesday','5/14/2024','8:00 PM','6121967','The-Postal-Service---Death-Cab-for-Cutie-5-14-2024'],['The Kid Laroi','UBC Thunderbird Arena','Vancouver, Canada','Saturday','5/18/2024','7:30 PM','6340618','The-Kid-Laroi-5-18-2024'],['Jordan Davis, Mitchell Tenpenny & Ashley Cooke','Petco Park','San Diego, CA','Friday','5/31/2024','7:00 PM','5995725','Jordan-Davis--Mitchell-Tenpenny---Ashley-Cooke-5-31-2024'],['Luke Combs, Mitchell Tenpenny & Drew Parker','Rice Eccles Stadium','Salt Lake City, UT','Saturday','6/8/2024','5:45 PM','5879010','Luke-Combs--Mitchell-Tenpenny---Drew-Parker-6-8-2024'],['The Teskey Brothers & The Dip','UBC Thunderbird Arena','Vancouver, Canada','Sunday','6/9/2024','8:00 PM','6129430','The-Teskey-Brothers---The-Dip-6-9-2024'],['Ocean Alley','UBC Thunderbird Arena','Vancouver, Canada','Saturday','7/6/2024','8:00 PM','6131131','Ocean-Alley-7-6-2024'],['Orville Peck','UBC Thunderbird Arena','Vancouver, Canada','Monday','7/8/2024','8:00 PM','6355729','Orville-Peck-7-8-2024'],['Luke Combs, Mitchell Tenpenny & Drew Parker','MetLife Stadium','East Rutherford, NJ','Saturday','7/20/2024','5:45 PM','5879015','Luke-Combs--Mitchell-Tenpenny---Drew-Parker-7-20-2024'],['Luke Combs, Mitchell Tenpenny & Drew Parker','Commanders Field','Landover, MD','Saturday','7/27/2024','5:45 PM','5879018','Luke-Combs--Mitchell-Tenpenny---Drew-Parker-7-27-2024'],['Luke Combs, Jordan Davis, Mitchell Tenpenny & Drew Parker','Paycor Stadium','Cincinnati, OH','Saturday','8/3/2024','5:45 PM','5879021','Luke-Combs--Jordan-Davis--Mitchell-Tenpenny---Drew-Parker-8-3-2024'],['Wallows','UBC Thunderbird Arena','Vancouver, Canada','Wednesday','8/7/2024','7:30 PM','6314724','Wallows-8-7-2024'],['Luke Combs, Mitchell Tenpenny & Drew Parker','NRG Stadium','Houston, TX','Saturday','8/10/2024','5:45 PM','5879023','Luke-Combs--Mitchell-Tenpenny---Drew-Parker-8-10-2024'],['Mt. Joy','UBC Thunderbird Arena','Vancouver, Canada','Saturday','8/17/2024','8:00 PM','6062633','Mt--Joy-8-17-2024'],['Jordan Davis, Mitchell Tenpenny & Ashley Cooke','Scotiabank Saddledome','Calgary, Canada','Thursday','10/17/2024','7:00 PM','5995755','Jordan-Davis--Mitchell-Tenpenny---Ashley-Cooke-10-17-2024'],['Porter Robinson','UBC Thunderbird Arena','Vancouver, Canada','Friday','11/1/2024','8:00 PM','6406781','Porter-Robinson-11-1-2024']],'Mitchell Stadium','http://www.ticketnetwork.com/ticket/Mitchell-Stadium-events.aspx');